import { WindowName } from "@/mdesign-lib/mdesign-main.js";
import { IpcWindow } from "@/mdesign-lib/mdesign-app.umd.js";

export interface RuleManagerParams {
  projectId: string;
  groupId: string;
  groupName: string;
}

export type CloseData = {
  windowName: WindowName;
  success: boolean;
};

export const RuleManagerWindow = new IpcWindow<
  // 参数
  RuleManagerParams,
  // 返回值
  CloseData
>(WindowName.RuleManagerWindow);
